<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <textarea id="textarea">
    </textarea>
</body>
<script>
    var area = document.getElementById('textarea');
    area.addEventListener('input', function() {
        alert('input detected');
    });
</script>
</html>
